$(document).on('pagebeforeshow', '#pagina7', function (event) {
    //$(".menu").fadeOut(300);
    TweenLite.to(".menu", 0.5, {alpha:0});

    $("video").css({"display":"none"});
    $("#icoPg1").removeClass('active');
    $("#icoPg2").removeClass('active');
    $("#icoPg3").removeClass('active');
    $("#icoPg3").toggleClass('active').siblings().removeClass('active');
    $("#icoPg3").removeClass('active');
    $("#icoPg6").removeClass('active');
    $("#icoPg7").removeClass('active');
    
    paginaAtual =7;
    grid.defineGrid(paginaAtual);
    podeVirar(paginaAtual);
});

$(document).on('pageshow', '#pagina7', function (event) {
    $("#bgBaixo").animate({ bottom: -110 }, 1500);
    TweenLite.to("#bgBaixo", 1.5, {bottom:"-110"});
    //$("#setinhasDireita").fadeOut(300);
    TweenLite.to("#setinhasDireita", 0.5, {alpha:0});
});

$(document).on('pagebeforehide', '#pagina7', function (event) {
      TweenLite.to("#bgBaixo", 0.5, {bottom:"-255"});
});